home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pctv4n2.zip / SHADES.ZIP / MULTI.CPP < prev    next >
C/C++ Source or Header  |  1993-02-26  |  830b  |  30 lines

  1. // multi.cpp -- Multi-file sample program by Tom Swan
  2. #include <owl.h>
  3. #pragma hdrstop
  4. #include "frame.h"
  5.  
  6. // The MDI application class
  7. class TMultiApp: public TApplication {
  8. public:
  9.   TMultiApp(LPSTR AName, HINSTANCE AnInstance,
  10.     HINSTANCE APrevInstance, LPSTR ACmdLine, int ACmdShow)
  11.     : TApplication(AName, AnInstance, APrevInstance,
  12.       ACmdLine, ACmdShow) {};
  13.   virtual void InitMainWindow();
  14. };
  15.  
  16. // Initialize the MDI application's main (frame) window
  17. void TMultiApp::InitMainWindow()
  18. {
  19.   MainWindow = new TFrameWindow("Multi-file Sample", ID_MENU);
  20. }
  21.  
  22. int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
  23.   LPSTR lpszCmdLine, int nCmdShow)
  24. {
  25.   TMultiApp MultiApp("MultiApp", hInstance, hPrevInstance,
  26.     lpszCmdLine, nCmdShow);
  27.   MultiApp.Run();
  28.   return MultiApp.Status;
  29. }
  30.